home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / textual / tex / files / !tex / TeXsource / web2ctex / h / site
Encoding:
Text File  |  1989-10-06  |  5.0 KB  |  158 lines

  1. /*
  2.  * Master configuration file for C versions of TeX and Metafont
  3.  *
  4.  * Tim Morgan  2/13/88
  5.  */
  6.  
  7.  
  8. /*
  9.    This is included *after* stdio, so the following is safe:
  10.  
  11.    CTex mixes output to stdio and stderr quite indiscriminately.
  12.    This is a *bad thing*...
  13.  
  14.    Here I redefine stdout to be stderr, so that all output goes
  15.    to the same stream (Web TeX's original terminal stream).  Having
  16.    done this, I trap *all* I/O library calls, and filter out any
  17.    for stderr, which I redirect into a RISC_OS window.  The ones
  18.    which are not redirected are still intercepted to give the
  19.    wimp polling loop a chance to do some work.
  20.       This is also a convenient hook for trapping dvi writes to
  21.    a file, in order to redirect them to a pipe - and then send the
  22.    dvi straight to the dvi viewer which can start immediately.
  23.       Finally, the editor to be invoked on error is my hack of
  24.    uEmacs, which accepts a -line parameter, *and* multitasks under
  25.    the wimp!
  26.       ... this is turning into quite a nice little system... (TeXtures
  27.    eat your heart out :-))
  28.  
  29.                       Graham Toal <gtoal@uk.ac.ed>
  30.  
  31.  */
  32.  
  33. #ifdef RISC_OS
  34. #ifdef stdout
  35. #undef stdout     /* in case library defines it as a macro */
  36. #endif
  37. #define stdout stderr
  38. #define TERMINAL stderr
  39. #define TERMINAL_PATH 0
  40. #endif
  41.  
  42.  
  43. /*
  44.  * Default editor command string: %d expands to the line number where
  45.  * TeX or Metafont found an error, and %s expands to the name of the file.
  46.  */
  47. #ifdef ARTHUR
  48. #ifdef RISC_OS
  49. #define EDITOR          "!uEmacs %s -line %d"
  50. #else
  51. #define EDITOR          "twin %s -line %d" /* Does this work reversed? */
  52. #endif
  53. #else
  54. #define EDITOR          "/usr/ucb/vi +%d %s"
  55. #endif
  56. /*
  57.  * If the type "int" is at least 32 bits (including a sign bit), this
  58.  * symbol should be #undef'd; otherwise, it should be #define'd.
  59.  */
  60. #undef  SIXTEENBIT
  61.  
  62. /*
  63.  * Our character set is 7-bit ASCII unless NONASCII is defined.
  64.  * For other character sets, make sure that first_text_char and
  65.  * last_text_char are defined correctly in TeX (they're 0 and 127,
  66.  * respectively, by default).  In the file tex.defines, change
  67.  * the indicated range of type "char" to be the same as
  68.  * first_text_char..last_text_char, re-tangle, and "#define NONASCII".
  69.  */
  70. #undef  NONASCII
  71.  
  72. /* Define if we're running under System V */
  73. #undef  SYSV
  74.  
  75. /* Define if we're running under 4.2 or 4.3 BSD */
  76. #ifdef ARTHUR
  77. #undef  BSD
  78. #else
  79. #define BSD
  80. #endif
  81.  
  82. /*
  83.  * The type "schar" should be defined here to be the smallest signed
  84.  * type available.  ANSI C compilers may need to use "signed char".
  85.  * If you don't have signed characters, then use "short".
  86.  */
  87. typedef signed char schar;
  88.  
  89. /*
  90.  * The type "integer" must be a signed integer capable of holding at
  91.  * least the range of numbers (-2^32)..(2^32-1).
  92.  * The ANSI draft C standard says that "long" meets this requirement.
  93.  */
  94. typedef long integer;
  95.  
  96. /* Boolean can by any convenient type */
  97. typedef char boolean;
  98.  
  99. /*
  100.  * The type glueratio should be a floating-point type which meets
  101.  * the following restriction: sizeof(glueratio) <= sizeof(integer).
  102.  */
  103. typedef float glueratio;
  104.  
  105. /* Real can by any convenient floating-point type */
  106. typedef double real;
  107.  
  108. /* TeX search paths: This is what we use at UCI. */
  109. #ifdef ARTHUR
  110.     /* Use current directory, and via *$Path - ie compatible with OS paths. */
  111. #define TEXINPUTS       ",texinputs:"
  112. #define TEXFONTS        ",texfonts:"
  113. #define TEXPOOL         ",texformats:"
  114. #define TEXFORMATS      ",texformats:"
  115. #else
  116. #define TEXINPUTS       ".:/usr/local/lib/tex82"
  117. #define TEXFONTS        ".:/usr/local/lib/fonts/tfm"
  118. #define TEXPOOL         ".:/usr/local/lib/tex82"
  119. #define TEXFORMATS      ".:/usr/local/lib/tex82"
  120. #endif
  121.  
  122. #ifdef ARTHUR
  123. #define MFINPUTS        ",mfinputs:"/* Note bug - ":" is an item seperator!! */
  124. #define MFBASES         ",mfbases:"
  125. #define MFPOOL          ",texformats:"
  126. #else
  127. /* Metafont search paths */
  128. #define MFINPUTS        ".:/usr/local/lib/mf84"
  129. #define MFBASES         ".:/usr/local/lib/mf84/bases"
  130. #define MFPOOL          ".:/usr/local/lib/mf84"
  131. #endif
  132.  
  133. /*
  134.  * Metafont Window Support: More than one may be defined.  At UCI,
  135.  * we support X10, X11, and SunWindows, although I haven't added
  136.  * X11 support to Metafont yet.
  137.  */
  138. #undef  SUNWIN                  /* Want SunWindows support */
  139. #undef  X10WIN                  /* Want X Version 10 Window support */
  140. #undef  X11WIN                  /* Want X Version 11 Window support */
  141. #undef  HP2627WIN               /* Do not want HP Window support */
  142. #undef  TEKTRONIXWIN            /* Want Tektronix window support */
  143.  
  144. /* NB: You can't define X10WIN and X11WIN simultaneously */
  145. #if defined(X10WIN) && defined(X11WIN)
  146. syntax error
  147. #endif
  148.  
  149. /*
  150.  * The maximum length of a filename including a directory specifier.
  151.  * This value is also defined in the change files for tex and mf, so
  152.  * it appears in texd.h and mfd.h as "filenamesize".  It can be safely
  153.  * changed in these files if necessary, although you should really edit
  154.  * the files tex/ctex.ch and mf/cmf.ch.  Most sites should not have to
  155.  * change this value anyway, since it doesn't hurt much if it's too large.
  156.  */
  157. #define FILENAMESIZE    1024
  158.